package com.zxl.common.model.bo.information;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zxw
 * @date 2023/4/24
 */
@Data
public class InformationSaveBo {
    @ApiModelProperty("修改时传,id")
    private Integer id;

    @ApiModelProperty("封面图片")
    @NotBlank(message = "封面图片不能为空")
    private String coverImage;

    @ApiModelProperty(value = "新闻标题")
    @NotBlank(message = "新闻标题不能为空")
    private String title;

    @ApiModelProperty(value = "新闻内容")
    @NotBlank(message = "新闻内容不能为空")
    private String content;

    @ApiModelProperty(value = "新闻分组id")
    @NotBlank(message = "新闻分组id不能为空")
    private String groupId;

    @ApiModelProperty(value = "启用状态：0：禁用 1：启用")
    private Integer status;
}
